RewriteEngine On
RewriteBase /
RewriteRule ^(.*).html$ dl.php?key=$1 [QSA]